<template>
	<up-notice-bar
		v-if="!isLogin"
		text="如需要使用完整功能请登录，点击后跳转注册登录页面"
	></up-notice-bar>
</template>
<script setup>
import { onLoad, onShow } from "@dcloudio/uni-app";
import { ref } from "vue";
import { useUserStore } from "@/stores/user";
const isLogin = ref(true);
onShow(() => {
	const { userInfo } = useUserStore();
	console.log(userInfo);
	isLogin.value = userInfo.username;
});
</script>
